﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002C7 RID: 711
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueUpdateDiceInfoScNotify : IMessage<ChessRogueUpdateDiceInfoScNotify>, IMessage, IEquatable<ChessRogueUpdateDiceInfoScNotify>, IDeepCloneable<ChessRogueUpdateDiceInfoScNotify>, IBufferMessage
	{
		// Token: 0x17000944 RID: 2372
		// (get) Token: 0x06001FEB RID: 8171 RVA: 0x0005AD7B File Offset: 0x00058F7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueUpdateDiceInfoScNotify> Parser
		{
			get
			{
				return ChessRogueUpdateDiceInfoScNotify._parser;
			}
		}

		// Token: 0x17000945 RID: 2373
		// (get) Token: 0x06001FEC RID: 8172 RVA: 0x0005AD82 File Offset: 0x00058F82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueUpdateDiceInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000946 RID: 2374
		// (get) Token: 0x06001FED RID: 8173 RVA: 0x0005AD94 File Offset: 0x00058F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueUpdateDiceInfoScNotify.Descriptor;
			}
		}

		// Token: 0x06001FEE RID: 8174 RVA: 0x0005AD9B File Offset: 0x00058F9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateDiceInfoScNotify()
		{
		}

		// Token: 0x06001FEF RID: 8175 RVA: 0x0005ADA3 File Offset: 0x00058FA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateDiceInfoScNotify(ChessRogueUpdateDiceInfoScNotify other) : this()
		{
			this.rogueDiceInfo_ = ((other.rogueDiceInfo_ != null) ? other.rogueDiceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001FF0 RID: 8176 RVA: 0x0005ADD8 File Offset: 0x00058FD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateDiceInfoScNotify Clone()
		{
			return new ChessRogueUpdateDiceInfoScNotify(this);
		}

		// Token: 0x17000947 RID: 2375
		// (get) Token: 0x06001FF1 RID: 8177 RVA: 0x0005ADE0 File Offset: 0x00058FE0
		// (set) Token: 0x06001FF2 RID: 8178 RVA: 0x0005ADE8 File Offset: 0x00058FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceInfo RogueDiceInfo
		{
			get
			{
				return this.rogueDiceInfo_;
			}
			set
			{
				this.rogueDiceInfo_ = value;
			}
		}

		// Token: 0x06001FF3 RID: 8179 RVA: 0x0005ADF1 File Offset: 0x00058FF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueUpdateDiceInfoScNotify);
		}

		// Token: 0x06001FF4 RID: 8180 RVA: 0x0005ADFF File Offset: 0x00058FFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueUpdateDiceInfoScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.RogueDiceInfo, other.RogueDiceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001FF5 RID: 8181 RVA: 0x0005AE34 File Offset: 0x00059034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueDiceInfo_ != null)
			{
				num ^= this.RogueDiceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001FF6 RID: 8182 RVA: 0x0005AE70 File Offset: 0x00059070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001FF7 RID: 8183 RVA: 0x0005AE78 File Offset: 0x00059078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001FF8 RID: 8184 RVA: 0x0005AE81 File Offset: 0x00059081
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueDiceInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.RogueDiceInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001FF9 RID: 8185 RVA: 0x0005AEB4 File Offset: 0x000590B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDiceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001FFA RID: 8186 RVA: 0x0005AEF4 File Offset: 0x000590F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueUpdateDiceInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueDiceInfo_ != null)
			{
				if (this.rogueDiceInfo_ == null)
				{
					this.RogueDiceInfo = new ChessRogueDiceInfo();
				}
				this.RogueDiceInfo.MergeFrom(other.RogueDiceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001FFB RID: 8187 RVA: 0x0005AF48 File Offset: 0x00059148
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001FFC RID: 8188 RVA: 0x0005AF54 File Offset: 0x00059154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.rogueDiceInfo_ == null)
					{
						this.RogueDiceInfo = new ChessRogueDiceInfo();
					}
					input.ReadMessage(this.RogueDiceInfo);
				}
			}
		}

		// Token: 0x04000D1E RID: 3358
		private static readonly MessageParser<ChessRogueUpdateDiceInfoScNotify> _parser = new MessageParser<ChessRogueUpdateDiceInfoScNotify>(() => new ChessRogueUpdateDiceInfoScNotify());

		// Token: 0x04000D1F RID: 3359
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000D20 RID: 3360
		public const int RogueDiceInfoFieldNumber = 2;

		// Token: 0x04000D21 RID: 3361
		private ChessRogueDiceInfo rogueDiceInfo_;
	}
}
